package day1125;

import java.util.Scanner;
public class demo4 {
    public  static int Y(int num)
    {
        int sum=0;
        for(int j=1;j<num;j++)
        {
            if(num%j==0)
            {
                sum=sum+j;
            }
        }
        return sum;
    };
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        for(int i=1;i<=1000;i++)
        {
            if(Y(i)==i)
            {
                System.out.println("yes"+i+"是完数");
            }
        }
    }
}
